package com.aizuda.boot.modules.business.performancePlan.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Positive;
import java.math.BigDecimal;

/**
 * 货币金额DTO
 * 
 * @author system
 * @date 2025-01-17
 */
@Data
@Schema(description = "货币金额信息")
public class CurrencyAmountDTO {

    @NotNull(message = "金额不能为空")
    @Positive(message = "金额必须大于0")
    @Schema(description = "金额", example = "100.00", required = true)
    private BigDecimal amount;

    @NotBlank(message = "货币代码不能为空")
    @Schema(description = "货币代码，如：USD、CNY、EUR等", example = "USD", required = true)
    private String currency;
}